package vo;

import java.io.Serializable;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import po.Dish;


public class MerchantVo implements Serializable {

	private String mId;
	private String mName;
	private String mTel;
	private String address;
	private String logo;
	private double grade;
	private int type;
	private String password;

	private List<Dish> dishs;

	public MerchantVo(String mName, String mTel, String address,
			String logo, double grade, int type, String password, List<Dish> dishs) {
		super();
		this.mName = mName;
		this.mTel = mTel;
		this.address = address;
		this.logo = logo;
		this.grade = grade;
		this.type = type;
		this.password = password;
		this.dishs = dishs;
	}
	
	public MerchantVo(String mId, String mName, String mTel, String address,
			String logo, double grade, int type, String password, List<Dish> dishs) {
		super();
		this.mId = mId;
		this.mName = mName;
		this.mTel = mTel;
		this.address = address;
		this.logo = logo;
		this.grade = grade;
		this.type = type;
		this.password = password;
		this.dishs = dishs;
	}

	public List<Dish> getDishs() {
		return dishs;
	}

	public void setDishs(List<Dish> dishs) {
		this.dishs = dishs;
	}

	public MerchantVo() {
		super();
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getmId() {
		return mId;
	}

	public void setmId(String mId) {
		this.mId = mId;
	}

	public String getmName() {
		return mName;
	}

	public void setmName(String mName) {
		this.mName = mName;
	}

	public String getmTel() {
		return mTel;
	}

	public void setmTel(String mTel) {
		this.mTel = mTel;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public double getGrade() {
		return grade;
	}

	public void setGrade(double grade) {
		this.grade = grade;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
